﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using java.lang;
using java.util;
using lineage2.commons.collections;
using Enum = java.lang.Enum;

namespace Game.templates.item.support
{
    public class LureTemplate
    {
        private int _itemId;
	   
	    private int _lengthBonus;
	   
	    private double _revisionNumber;
	   
	    private double _rateBonus;
	   
	    private Enum _lureType;
	   
	    private Map _chances;
        public LureTemplate(MultiValueSet set)
	    {
		    _itemId = set.getInteger("item_id");
		    _lengthBonus = set.getInteger("length_bonus");
		    _revisionNumber = set.getDouble("revision_number");
		    _rateBonus = set.getDouble("rate_bonus");
		    _lureType = set.getEnum("type", typeof (LureType));
		    _chances = (Map) set.get("chances");
	    }
        public int getItemId()
        {
            return _itemId;
        }
        public int getLengthBonus()
        {
            return _lengthBonus;
        }
        public double getRevisionNumber()
        {
            return _revisionNumber;
        }
        public double getRateBonus()
        {
            return _rateBonus;
        }
        public LureType getLureType()
        {
            return _lureType;
        }
        public Map getChances()
        {
            return _chances;
        }
    }
}
